package com.cqjtu.store.user.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @ProjectName: cqjtu-store
 * @Titile: PwdUpdateDTO
 * @Author: Lucky
 * @Description: 修改密码的封装类
 */
@Data
// todo 在线文档注解
@ApiModel(value = "修改密码的DTO",description = "新旧密码")
public class PwdUpdateDTO {
    // todo 校验注解
    /*原来密码*/
    @NotBlank
    @ApiModelProperty(value = "原密码",name = "oldPwd",example = "123456",required = true)
    private String oldPwd;
    /*新密码*/
    @NotBlank
    @ApiModelProperty(value = "新密码",name = "newPwd",example = "123123",required = true)
    private String newPwd;
    /*重复新密码*/
    @NotBlank
    @ApiModelProperty(value = "重复新密码",name = "reNewPwd",example = "123123",required = true)
    private String reNewPwd;
}
